import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -05 -15
 * Time: 16:18
 */
public class Polyxy implements Shape{
    private double[] sides;

    public Polyxy(double[] sides) {
        this.sides=sides;
    }

    @Override
    public double getPerim() {
        double ret=0;
        for(int i=0;i<sides.length;i++){
            ret+=sides[i];
        }
        return ret;
    }
}
